home *** CD-ROM | disk | FTP | other *** search
/ Hyper Animation Series: Viper (Limited Edition) / Hyper Animation Series: VIPER (Limited Edition).iso / pc / SYSTEM / class / EnemyIndex.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-08-04  |  2.0 KB  |  79 lines

  1. class EnemyIndex extends StgObjectIndex {
  2.    public static final int COLOR_NOMAL = 0;
  3.    public static final int COLOR_RED = 1;
  4.    public static final int COLOR_BLUE = 2;
  5.    public static final int GROUP_NOMAL = 0;
  6.    public static final int GROUP_SHOT = 1;
  7.    public static final int GROUP_BLOCK = 2;
  8.    protected EnemyAction eaAction;
  9.    private int nColor;
  10.    private int nHitPoint;
  11.    private int nScore;
  12.    private int nGroup;
  13.  
  14.    public EnemyIndex(Position var1, SpriteAnimeData var2, Position var3, int var4, EnemyAction var5, int var6, int var7, int var8, int var9) {
  15.       super(var1, var2, var3, var4);
  16.       this.eaAction = var5;
  17.       this.nColor = var6;
  18.       this.nHitPoint = var7;
  19.       this.nScore = var8;
  20.       this.nGroup = var9;
  21.    }
  22.  
  23.    public boolean action() {
  24.       return this.eaAction.action(this);
  25.    }
  26.  
  27.    public boolean checkHitPlayerShip(PlayerShipIndex var1) {
  28.       return this.eaAction.checkHitPlayerShip(this, var1);
  29.    }
  30.  
  31.    public boolean checkHitPlayerShot(PlayerShotIndex var1) {
  32.       return this.eaAction.checkHitPlayerShot(this, var1);
  33.    }
  34.  
  35.    public boolean checkHitBom() {
  36.       return this.eaAction.checkHitBom(this);
  37.    }
  38.  
  39.    public void setEnemyAction(EnemyAction var1) {
  40.       this.eaAction = var1;
  41.    }
  42.  
  43.    public void setColor(int var1) {
  44.       this.nColor = var1;
  45.    }
  46.  
  47.    public void setHitPoint(int var1) {
  48.       this.nHitPoint = var1;
  49.    }
  50.  
  51.    public void setScore(int var1) {
  52.       this.nScore = var1;
  53.    }
  54.  
  55.    public void setGroup(int var1) {
  56.       this.nGroup = var1;
  57.    }
  58.  
  59.    public EnemyAction setEnemyAction() {
  60.       return this.eaAction;
  61.    }
  62.  
  63.    public int getColor() {
  64.       return this.nColor;
  65.    }
  66.  
  67.    public int getHitPoint() {
  68.       return this.nHitPoint;
  69.    }
  70.  
  71.    public int getScore() {
  72.       return this.nScore;
  73.    }
  74.  
  75.    public int getGroup() {
  76.       return this.nGroup;
  77.    }
  78. }
  79.